__author__ = 'tyrion'

import requests
import json

headers = {'content-type': 'application/json'}
para = {"server": "flexweb-cl-1", "instance": "8001", "start":"now-1d", "end": "now", "step": "120"}
url = "http://172.24.133.115:5001/infrastructure/monitor/history"

r = requests.post(url, data=json.dumps(para), headers=headers)
print(r.text)

